package map.terrain;

import map.MapObject;
import map.PlayerObject;
import map.SurfaceLevel;

public class LiquidEnterableTerraint extends BasicTerrain {

	public LiquidEnterableTerraint(String imageSource) {
		super(imageSource);
	}

	public LiquidEnterableTerraint(String imageSource, SurfaceLevel level) {
		super(imageSource, level);
	}

	@Override
	public boolean enterable(PlayerObject actor) {
		return actor.isSurfActive();
	}

	@Override
	public boolean entered(PlayerObject actor) {
		actor.setSurfActive(true);
		return true;
	}
	
	
	@Override
	public MapObject newInstance() {
		return new LiquidEnterableTerraint(imageSource, surfaceLevel);
	}
	

}

